<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Welcome extends Controller_Layout {

    public function action_index()
    {
        $api = Api::load('category');
    }   
    
    public static function category()
    {
        return new Api_Category();
    }
    
    public function action_doctrine()
    {
        
    }
    
    public function load($api_name)
    {
        $api = new $api_name();
        $a = new ReflectionClass($api);
        return $a->newInstance();
    }
} // End Welcome
